n = int(input())
sum = 1
for i in range(n-1):
    sum = (sum + 1) * 2
print(sum)